package net.oschina.app.fragment.me.fansfragment;

import net.oschina.app.adapter.me.fansadpter.NoticeListAdapter2;
import net.oschina.app.base.BaseListAdapter;
import net.oschina.app.base.BaseListFragment;
import net.oschina.app.bean2.AttentionBean;
import net.oschina.app.protocol.AccessProtocol;
import net.oschina.app.protocol.me.fansprotocol.NoticeProtocol2;

import java.util.List;

/**
 * Created by Vashon on 2017/1/12.
 */

public class Notice2Fragment extends BaseListFragment {

    @Override
    protected List parseData(Object body) {

        return ((AttentionBean)body).getFriends();
    }

    @Override
    protected AccessProtocol getProtocol() {
        return new NoticeProtocol2();
    }

    @Override
    protected BaseListAdapter getAdapter() {
        return new NoticeListAdapter2();
    }
}
